package com.example.demo_dongruanD.pojo;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.persistence.Id;  // 使用 JPA 的 Id 注解

import java.util.Date;

@Entity
@Table(name = "users")
public class Users {

        @Id
        @Column(name = "userId")
        private String userId;

        @Column(name = "password")
        private String password;

        @Column(name = "realName")
        private String realName;

        @Column(name = "sex")
        private Integer sex;

        @Column(name = "identityCard")
        private String identityCard;

        @Column(name = "birthday")
        private Date birthday;

        @Column(name = "userType")
        private Integer userType;

        // getters and setters
        public String getUserId() {
                return userId;
        }

        public void setUserId(String userId) {
                this.userId = userId;
        }

        public String getPassword() {
                return password;
        }

        public void setPassword(String password) {
                this.password = password;
        }

        public String getRealName() {
                return realName;
        }

        public void setRealName(String realName) {
                this.realName = realName;
        }

        public Integer getSex() {
                return sex;
        }

        public void setSex(Integer sex) {
                this.sex = sex;
        }

        public String getIdentityCard() {
                return identityCard;
        }

        public void setIdentityCard(String identityCard) {
                this.identityCard = identityCard;
        }

        public Date getBirthday() {
                return birthday;
        }

        public void setBirthday(Date birthday) {
                this.birthday = birthday;
        }

        public Integer getUserType() {
                return userType;
        }

        public void setUserType(Integer userType) {
                this.userType = userType;
        }
}
